package day06;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo2 {
    public static void main(String[] args) throws ParseException {
        String name="黄超";
        String s="1997-12-27";
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        Date birthday=sdf.parse(s);
        long time1=birthday.getTime();
        Date now=new Date();
        long time2=now.getTime();
        long day=(time2-time1)/1000/60/60/24;
        System.out.println(name+"到现在出生了"+day+"天");






    }
}
